import {defineStore} from "pinia";
import {RoleObj} from "../types/tanTypes/role";
// 用户约束
interface Role {
    username: string;
    password: string
    role: string
}
interface UserRoleState {
    visible: boolean;
    RoleObject: Array<RoleObj>;
    judgeBool: boolean;
    editInitData: RoleObj | null;
    index: number;
    userObj: Array<Role>
}
export const useUser = defineStore('user', {
    state: (): UserRoleState => ({
        visible: false,
        RoleObject: [],
        judgeBool: false,
        editInitData: null,
        index: 0,
        userObj: []
    })
})